define(['WebPDF'], function (WebPDF) {	
	'use strict';
	WebPDF.directive('ngWidth', [function () {		
		return {
			restrict: 'A',					
			link: function (scope, element, attr) {						
				scope.$watch(attr.ngWidth, function(newValue) {	
					if(newValue) element.width(newValue);
				});
			}
		};
	}]);
});